﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ManagementEffect;

namespace ServerYuGi
{
    public class ExcuteEffectManager
    {
        public List<byte> ListID_TrongLuot { get; set; }
        public List<byte> ListID_KhongTrongLuot { get; set; }
        public YCheckPoint CheckPointNow { get; set; }
        public bool isResumeProgress { get; set; }
        public int IDPlayerCheck { get; set; }
        public int CountNoCardActive { get; set; } // dung de dem khi ma ca 2 player deu khong co la nao co the active thi minh chain
        public int CountPlayerCanCel { get; set; }
        public List<string> nameAddToScript { get; set; }
        public ExcuteEffectManager()
        {
            CountNoCardActive = 0;
            CountPlayerCanCel = 0;
            ListID_TrongLuot = new List<byte>();
            ListID_KhongTrongLuot = new List<byte>();
            nameAddToScript = new List<string>();
        }
        public void Init()
        {
            ListID_TrongLuot.Clear();
            ListID_KhongTrongLuot.Clear();
            isResumeProgress= true;
        }  
        public void InitCount()
        {
            CountNoCardActive = 0;
            CountPlayerCanCel = 0;
        }
        void InitName()
        {
            nameAddToScript.Clear();
        }
       
        public void SetName(params string[] param)
        {
            InitName();
            nameAddToScript.AddRange(param);
        }

       
        
        
    }
}
